package personnal.jonat;

import java.io.File;
import java.io.IOException;

public class Main {

    public static void main(String[] args) throws IOException {
        // TODO Utiliser les paramètres de la ligne de commande
        // File inputFile = new File("recap.xls");
        // int studentCount = 14;
        // int skillCount = 14;

        if (args.length != 3) {
            usage();
            System.exit(1);
        }
        File inputFile = new File(args[0]);
        int studentCount = Integer.valueOf(args[1]);
        int skillCount = Integer.valueOf(args[2]);
        OutCome outCome = new StudentExtractor(studentCount, skillCount).extractStudents(inputFile);
        new StudentOutComeGenerator().generateOutcomes(outCome, new File("target"));
    }

    private static void usage() {
        System.out.println("Parameters: inputfile studentCount skillCount");
    }
}
